package com.syq.feign.controller;

import com.syq.feign.service.PersonalFeignService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class PersonalFeignController {
   @Resource
   PersonalFeignService personalFeignService;
   @GetMapping("/personals")
   public String getAllPersonals(){
       return personalFeignService.getAllPersonals();
   }
   @RequestMapping(value = "/personal/{pno}",method = RequestMethod.POST)


   public String getPersonalByPno(@PathVariable("pno") String pno) {
      return personalFeignService.getPersonalByPno(pno);
   }
}

